
package com.example.zzj.ziwuyundemo.application;

import android.app.Application;
import com.example.zzj.ziwuyundemo.handler.CrashHandler;

/**
 * Created by dldarren on 15/9/14.
 */
public class MyApplication extends Application {

    public static MyApplication mMyApplication;

    @Override
    public void onCreate() {
        super.onCreate();
        CrashHandler crashHandler = CrashHandler.getInstance();
        crashHandler.init(getApplicationContext());
        mMyApplication = this;
    }

    @Override
    public void onTerminate() {
        mMyApplication = null;
        super.onTerminate();
    }
}
